import Vue from 'vue'
import Router from 'vue-router'
import App from "../App";

Vue.use(Router)

const home = () => import ('../views/home/Home')
const category = () => import ('../views/category/Category')
const shopcart = () => import ('../views/shopcart/Shopcart')
const profile = () => import ('../views/profile/Profile')

export default new Router({

  routes: [
    {
      path:'',
      redirect:'/home'
    },
    {
      path:'/home',
      component:home
    },
    {
      path:'/category',
      component:category
    },
    {
      path:'/shopcart',
      component:shopcart
    },
    {
      path:'/profile',
      component:profile
    },
  ],
  mode:'history'
})
